package com.gjs.common.manager.notification;

import com.gjs.common.manager.notification.sms.ISms;
import com.gjs.common.manager.notification.sms.SmsMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Notification implements INotification{

    @Autowired
    private ISms smsService;

    @Override
    public void send(SmsMessage smsMessage) throws NotificationFailException {
        smsService.send(smsMessage);
    }

}
